package com.erp.service.productdistribution.impl;

import com.erp.domain.ErpProduCthart;
import com.erp.mapper.productdistribution.ProductDistributionMapper;
import com.erp.service.productdistribution.IProductDistributionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * --- 代码敲对！ ---
 *
 * @author CCCccc
 * @create 2025/9/6
 * 备注：商品图表相关业务层实现类
 */
@Service
public class ProductDistributionServiceImpl implements IProductDistributionService {
    // 自动注入
    @Autowired
    private ProductDistributionMapper productDistributionMapper;
    // 各种类对应商品数
    @Override
    public List<ErpProduCthart> listCategory() {
        return productDistributionMapper.listCategory();

    }
    // 各仓库剩余商品数
    @Override
    public List<ErpProduCthart> listWarehouse() {
        return productDistributionMapper.listWarehouse();
    }
}
